package com.fqxl.labour.service.impl;

import com.fqxl.labour.domain.LabourFeedback;
import com.fqxl.labour.mapper.FeedbackMapper;
import com.fqxl.labour.service.FeedbackService;
import com.fqxl.labour.untils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FeedbackServiceImpl implements FeedbackService {

    @Autowired
    private FeedbackMapper feedbackMapper;

    /**
     * 添加意见反馈
     * @param labourFeedback
     * @return
     */
    @Override
    public R submit(LabourFeedback labourFeedback) {
        feedbackMapper.addSubmit(labourFeedback);
        return R.ok("添加成功");
    }
}
